package com.cug.nageoffer.mapper;

import com.cug.nageoffer.model.entity.ChatUser;
import com.cug.nageoffer.model.vo.ChatUserVo;
import com.cug.nageoffer.model.vo.UserMsgVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChatUserMapper {
    List<UserMsgVo> selectByUsername(@Param("username") String username, @Param("senderUsername") String senderUsername);

    void insert(UserMsgVo userMsgVo);

    List<ChatUser> selectChatListByUsername(String username);

    void insertChatList(ChatUser chatUser);

    String selectIsHave(ChatUser chatUser);
}
